/*
 *  gridobject.h
 *  
 *
 *  Created by camilo Ruiz Méndez on 19/01/09.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */

#include "constants.h"
#include <iostream>
#include <vector.h> 

class grid
	{
	public:
		int n1;           //number of points
		double dx1;       //delta x
		
		void set_grid(int _n1,double _dx1)
		{
			n1=_n1;
			dx1=_dx1;
		}
	};

class grid_object : public grid
	{
	public:
		
		vector<double> v;
		
		void initialize()
		{
			v.resize(n1,0.);
		}
		
		void put_on_grid(grid g)
		{
			set_grid(g.n1,g.dx1);
			initialize();
		}
		
		grid_object(grid g)
		{
			set_grid(g.n1,g.dx1);
			initialize();
		}
	};

//class trivectors: gri


//E.derivate()/c
